package com.ly.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import com.anti.mapper.AntiRoleMapper;
import com.anti.model.AntiRole;
import com.ly.service.OrderService;

import io.seata.core.context.RootContext;

@RestController
public class OrderServiceImpl implements OrderService {
	@Autowired
	private AntiRoleMapper antiRoleMapper;

	@Override
	public int createOrder(AntiRole antiRole) {
		// TODO Auto-generated method stub
		//RootContext.bind(antiRole.getCreateBy());
		antiRole.setCreateBy(null);
		return antiRoleMapper.insert(antiRole);
	}
	
	


}
